package com.rapida.example;

import android.os.Bundle;

import com.rapida.framwork.RapidActivity;

public class ExampleActivity extends RapidActivity {
	private NetPresenter presenter;

	@Override
	protected boolean didFinishLaunchingWithOptions() {
		MainUIController mainUIController = new MainUIController(this);
		setViewController(mainUIController);
		presenter = new NetPresenter(mainUIController);
		return true;
	}

	@Override
	protected void onResume() {
		super.onResume();
		presenter.onResume();
		presenter.checkNetwork(this);
	}

	@Override
	protected void onPause() {
		super.onPause();
		presenter.onPause();
	}
}
